From 419b69b9fa9133e0dff9bf5cd044c89ced8763e3 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 2 Dec 2000 20:28:33 +0000 Subject: [PATCH] (check-ispell-version): Don't use match-beginning to check if the match succeeded. --- lisp/textmodes/ispell.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 77c98d9cf4d..9776b74753b 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -747,8 +747,7 @@ Otherwise returns the library path if defined." ispell-version)) (message result)) ;; return library path. - (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t) - (if (match-beginning 0) + (if (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t) (setq result (buffer-substring (match-beginning 1) (match-end 1))))) (goto-char (point-min)) (if (not (memq status '(0 nil))) -- 2.30.2